import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import moment from 'moment'
import * as echarts from 'echarts'

Vue.prototype.$echarts = echarts 
Vue.prototype.$moment = moment
Vue.config.productionTip = false
Vue.use(ElementUI)


//全局时间格式化过滤
Vue.filter('moment', function (value, formatString) {
  formatString = formatString || 'YYYY-MM-DD HH:mm:ss';
  return moment(value).format('YYYY-MM-DD');
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
